﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CRMAdapter.PaymentHubServices;

using System.Windows.Forms;

namespace CRMWeb.Pages.AM
{
    public partial class TestPaymentHub : CRMWeb.Utilities.BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            CRMAdapter.PayByPaymentHub.AddCustomers(txtDigitalKey.Text, txtPassphrase.Text, txtSysRef.Text, "", txtLastName.Text, "", "", "", "", "", "", "", "", true, true, txtUserName.Text, txtBankAccName.Text, txtBankAccBsb.Text, txtBankAccNumber.Text);
            ClearAll();

        }

        //Method to clear all fields
        public void ClearAll()
        {
            txtDigitalKey.Text = "";
            txtPassphrase.Text = "";
            txtSysRef.Text = "";
            txtLastName.Text = "";

            txtUserName.Text = "";
        }

        
    }
}